<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>hello bootstrap</title>
    <!--导入bootstrap的主样式-->
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">

</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <h2>按钮样式-默认大小</h2>
            <button class="btn btn-default active" type="button">default</button>
            <button class="btn btn-primary active" type="button">Primary</button>
            <button class="btn btn-info disabled" type="button">Info</button>
            <button class="btn btn-danger" type="button" disabled>Danger</button>
            <button class="btn btn-warning" type="button">Warning</button>
            <button class="btn btn-success" type="button">Success</button>
            <button class="btn btn-link" type="button">Link</button>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <h2>按钮样式 定义大小</h2>
            <button class="btn btn-default btn-lg" type="button">default(大)</button>
            <button class="btn btn-primary btn-sm" type="button">Primary(小)</button>
            <button class="btn btn-info btn-xs" type="button">Info(最小)</button>
            <button class="btn btn-danger" type="button">Danger(默认)</button>
            <button class="btn btn-warning" type="button">Warning(默认)</button>
            <button class="btn btn-success btn-lg" type="button">Success(大)</button>
            <button class="btn btn-link" type="button">Link(默认)</button>

        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <h2>在&lt;a&gt;标签中使用按钮样式</h2>
            <a href="#" class="btn btn-default">链接1</a>
            <a href="#" class="btn btn-primary">链接2</a>
            <a href="#" class="btn btn-success">链接3</a>
            <a href="#" class="btn btn-info">链接4</a>
            <a href="#" class="btn btn-danger">链接5</a>
            <a href="#" class="btn btn-warning">链接6</a>
            <a href="#" class="btn btn-link">链接7</a>
        </div>
    </div>

    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <h2>填充父元素大小的按钮</h2>
            <button class="btn btn-primary btn-block" type="button" >按钮</button>
        </div>
    </div>
</div>
</body>
</html>